<template>
  <div>
    <van-field label="角色名" v-model="name"/>
    <van-button @click="add">添加</van-button>
  </div>
</template>

<script>
export default {
  name: "role",
  data(){
    return{
      name:''
    }
  },
  methods:{
    add(){
      this.$axios.post('roleM',{'name':this.name}).then(res=>{

      })
    }
  }
}
</script>

<style scoped>

</style>
